<?php
include("../../inc/global.php");
adminislogin();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码修改</title>
<link href="../../Css.css" rel="stylesheet" type="text/css">
</head>

<body>
<form name="form1" method="post" action="modifypassword_save.php">
  <table width="95%" height="266" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#616975" class="YKTtable">
    <tr class="YKTth">
      <td height="26" style="background-color:#616975"> 　　当前位置：密码修改</td>
    </tr>
    <tr class="YKTtd">
      <td><table width="95%" border="0" align="center" cellpadding="0">
          <tr>
            <td width="27%" height="25" class="TdLine"><div align="right">*您的旧密码：</div></td>
            <td width="73%" class="TdLine"><label>
              <input name="oldpass" type="password"  class="InputNone" id="oldpass">
            *</label></td>
          </tr>
          <tr>
            <td height="25" class="TdLine"><div align="right">*输入新密码：</div></td>
            <td class="TdLine"><input name="newpass"   type="password" class="InputNone" id="newpass">
              密码<strong>6～16</strong>位。限用字母、数字、特殊字符。</td>
          </tr>
          <tr>
            <td height="25" class="TdLine"><div align="right">*新密码确认：</div></td>
            <td class="TdLine"><input name="newpass1"   type="password" class="InputNone" id="newpass1">
            *</td>
          </tr>
        </table>
          <p align="center">
            <input type="image" name="sumbit" onClick="return yz()" src="../../iamges/botton_baocun.png" />
        </p></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
function $(getid){	return document.getElementById(getid);}
function yz()
{
	if($("oldpass").value=="")
	{
		alert("请输入旧密码！");
		$("oldpass").focus();
		return false;
	}
	if($("newpass").value=="")
	{
		alert("请输入新密码！");
		$("newpass").focus();
		return false;
	}
	if($("newpass").value.length<6||$("newpass").value.length>16)
	{
		alert("新密码要在 6-16 位");
		$("newpass").focus();
		return false;
	}
	if($("newpass1").value=="")
	{
		alert("请输入确认新密码！");
		$("newpass1").focus();
		return false;
	}
	if($("newpass").value!=$("newpass1").value)
	{
		alert("两次密码不一致！！");
		$("newpass1").focus();
		return false;
	}
}
</script>
</body>
</html>
